home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / dobbs / v17n04 / handprin.urc / (InkEdit) / InkPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-11  |  1.1 KB  |  43 lines  |  [TEXT/KAHL]

  1. /****
  2.  * InkPane.h
  3.  *
  4.  *    A text edit pane for a tiny editor.
  5.  *
  6.  ****/
  7.  
  8.  
  9. #define _H_InkPane
  10.  
  11. #include <CEditText.h>
  12. #include "CEditDoc.h"
  13. #include "Recognizer.h"
  14.  
  15. struct InkPane : CPanorama {
  16.     
  17.     List *Data;
  18.     short SelectionRow,SelectionCol;
  19.     CEditDoc *StatusWindow;
  20.     short    Width,Height,NumberToTrainOn,NumberToStartOn,TrainStart,TrainEnd,TrainCmd,
  21.             UseSamples,ReportErrors,UseHashTables,ShowPreprocessing,ConnectTheDots,
  22.             First;
  23.  
  24.     void    IEditPane(CView *anEnclosure, CBureaucrat *aSupervisor);
  25.     void    DoCommand(long theCommand);
  26.     void    Draw(Rect * area);
  27.     void    DoClick(Point hitPt,short modifierKeys,long when);
  28.     void    UpdateMenus(void);
  29.     void    FeatureReport(void);
  30.     void    Test(void);
  31.     void    DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  32.     short    CollectStroke(Point where,StrokePtr theStroke);
  33.     void    TrainingCollectStroke(Point,long);
  34.     short    CollectGesture(Point where,long when,short which);
  35.     void    DrawSamples(short which,Rect *area);
  36.     void    InvertSelection(void);
  37.     void    DeleteEntry(void);
  38.     void    Report(char *str);
  39.     void    ReportCode(short code);
  40.     void    DrawCode(short code);
  41.     void    SetData(Handle theData);
  42. };
  43.